<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>获取URL</title>
	</head>
	<body>
		<p>当前页面 url 为：<span></span></p>
		<script type="text/javascript">
			document.querySelector('span').innerHTML = window.location.href
		</script>
	</body>
</html>
